import request from "@/utils/request";

// 登录方法
export function loginApi(data: object) {
  return request({
    url: "/multiPersonConference/login",
    headers: {
      "Content-Type": "application/json",
    },
    method: "post",
    data,
  });
}

// 注册
export function registerApi(data: object) {
  return request({
    url: "/multiPersonConference/register",
    method: "post",
    headers: {
      "Content-Type": "application/json",
    },
    data,
  });
}

// 发送验证码
export function sendEmailCodeApi(data: object) {
  return request({
    url: "/multiPersonConference/send-email",
    method: "post",
    headers: {
      "Content-Type": "application/json",
    },
    data,
  });
}

// 邮箱验证
export function emailVerifyCodeApi(data: object) {
  return request({
    url: "/multiPersonConference/check-email",
    method: "post",
    headers: {
      "Content-Type": "application/json",
    },
    data,
  });
}

// 忘记密码
export function forgotPasswordApi(data: object) {
  return request({
    url: "/multiPersonConference/forgot-password",
    method: "post",
    headers: {
      "Content-Type": "application/json",
    },
    data,
  });
}
